<template>
    <div class="max" @click="hid">
        <div class="img_div">
            <img :src="img">
        </div>
    </div>
</template>
<script>
export default {
    data(){
        return{

        }
    },
    props:['img'],
    methods:{
        hid(){
            this.$emit('hidBig')
        }
    }
}
</script>
<style lang='less' scoped>
.max{
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background: rgba(240,240,240, .3);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9000;
}
.img_div{
    width: 500px;
    height: 500px;
}
img{
    width: 500px;
}
</style>